<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2020/11/9
 * Time: 17:33
 */

namespace app\mall\model;


use think\Model;

class User extends Model
{
    /**
     * @return \think\model\relation\HasOne
     * 小店
     */
    public function merchant()
    {
        return $this->hasOne(Merchant::class, 'user_id', 'id');
    }
}